.class final Llt/noframe/gpsfarmguide/share/Share$2;
.super Ljava/lang/Object;
.source "Share.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/share/Share;->makeShare(Ljava/util/List;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$measuring:Ljava/util/List;

.field final synthetic val$name:Ljava/lang/String;


# direct methods
.method constructor <init>(Ljava/util/List;Ljava/lang/String;)V
    .locals 0

    .line 117
    iput-object p1, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$measuring:Ljava/util/List;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$name:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2

    .line 119
    iget-object p1, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$measuring:Ljava/util/List;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$name:Ljava/lang/String;

    invoke-static {p1, v0}, Llt/noframe/gpsfarmguide/share/KmlMaker;->makeMultiFile(Ljava/util/List;Ljava/lang/String;)Z

    move-result p1

    const/4 v0, 0x1

    if-nez p1, :cond_0

    .line 120
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    const v1, 0x7f1100ca

    invoke-virtual {p2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void

    :cond_0
    if-eqz p2, :cond_3

    if-eq p2, v0, :cond_2

    const/4 p1, 0x2

    if-eq p2, p1, :cond_1

    goto :goto_0

    .line 132
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$name:Ljava/lang/String;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/share/Share;->access$400(Ljava/lang/String;)V

    goto :goto_0

    .line 129
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$name:Ljava/lang/String;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/share/Share;->access$200(Ljava/lang/String;)V

    goto :goto_0

    .line 126
    :cond_3
    iget-object p1, p0, Llt/noframe/gpsfarmguide/share/Share$2;->val$name:Ljava/lang/String;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/share/Share;->access$100(Ljava/lang/String;)V

    :goto_0
    return-void
.end method
